﻿using LvcChong.DB.Options;
using SqlSugar;

namespace LvcChong.DB
{
    internal class OrderQueryRepository : SimpleClient<OrderQueryEntity>
    {
        public OrderQueryRepository()
        {
            var connection = new AppsettingsProvider().GetOption<ConnectionOption>() ?? new ConnectionOption();
            base.Context = new SqlSugarScope(ConnectionConfigUtil.CreateConnection(connection.Key, connection.ConnectionString, (DbType)Enum.Parse(typeof(DbType), connection.Type), connection.Schema));
        }
    }
}
